package com.windoent.yugioh.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * author : robert
 * date   : 2021/7/23 12:59
 * desc   :
 */
public class UserGameList {

    /**
     * code : 200
     * data : {"matchTotal":{"0":2,"1":2,"2":0,"3":0,"4":0},"res":{"join":{"count":0,"data":null,"title":"待参加"},"newest":{"count":2,"data":[{"id":57,"statusId":8,"name":"MUNU","address":"上海市 上海市 普陀区 臣风大厦","addressPosition":"{\"latitude\":\"31.228806\",\"longitude\":\"121.379402\"}","type":1,"startAt":"2021-07-14 16:00","role":"player","startAtTimestamp":1626278430,"bottom":{"type":5,"action":0,"title":{"text":"亚军","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}},{"id":59,"statusId":8,"name":"典韦9号","address":"北京市 北京市 东城区 三条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":1,"startAt":"2021-07-14 08:24","role":"player","startAtTimestamp":1626251040,"bottom":{"type":1,"action":0,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}}],"title":"最新赛事"},"payment":{"count":0,"data":null,"title":"待支付"}}}
     * msg : 查询成功
     */

    private int code;
    private DataBeanX data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBeanX {
        /**
         * matchTotal : {"0":2,"1":2,"2":0,"3":0,"4":0}
         * res : {"join":{"count":0,"data":null,"title":"待参加"},"newest":{"count":2,"data":[{"id":57,"statusId":8,"name":"MUNU","address":"上海市 上海市 普陀区 臣风大厦","addressPosition":"{\"latitude\":\"31.228806\",\"longitude\":\"121.379402\"}","type":1,"startAt":"2021-07-14 16:00","role":"player","startAtTimestamp":1626278430,"bottom":{"type":5,"action":0,"title":{"text":"亚军","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}},{"id":59,"statusId":8,"name":"典韦9号","address":"北京市 北京市 东城区 三条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":1,"startAt":"2021-07-14 08:24","role":"player","startAtTimestamp":1626251040,"bottom":{"type":1,"action":0,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}}],"title":"最新赛事"},"payment":{"count":0,"data":null,"title":"待支付"}}
         */

        private MatchTotalBean matchTotal;
        private ResBean res;

        public MatchTotalBean getMatchTotal() {
            return matchTotal;
        }

        public void setMatchTotal(MatchTotalBean matchTotal) {
            this.matchTotal = matchTotal;
        }

        public ResBean getRes() {
            return res;
        }

        public void setRes(ResBean res) {
            this.res = res;
        }

        public static class MatchTotalBean {
            /**
             * all : 1
             * ec : 0
             * ig : 1
             * sl : 0
             * tn : 0
             */

            private int all;
            private int ec;
            private int ig;
            private int sl;
            private int tn;

            public int getAll() {
                return all;
            }

            public void setAll(int all) {
                this.all = all;
            }

            public int getEc() {
                return ec;
            }

            public void setEc(int ec) {
                this.ec = ec;
            }

            public int getIg() {
                return ig;
            }

            public void setIg(int ig) {
                this.ig = ig;
            }

            public int getSl() {
                return sl;
            }

            public void setSl(int sl) {
                this.sl = sl;
            }

            public int getTn() {
                return tn;
            }

            public void setTn(int tn) {
                this.tn = tn;
            }
        }

        public static class ResBean {
            /**
             * join : {"count":0,"data":null,"title":"待参加"}
             * newest : {"count":2,"data":[{"id":57,"statusId":8,"name":"MUNU","address":"上海市 上海市 普陀区 臣风大厦","addressPosition":"{\"latitude\":\"31.228806\",\"longitude\":\"121.379402\"}","type":1,"startAt":"2021-07-14 16:00","role":"player","startAtTimestamp":1626278430,"bottom":{"type":5,"action":0,"title":{"text":"亚军","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}},{"id":59,"statusId":8,"name":"典韦9号","address":"北京市 北京市 东城区 三条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":1,"startAt":"2021-07-14 08:24","role":"player","startAtTimestamp":1626251040,"bottom":{"type":1,"action":0,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}}],"title":"最新赛事"}
             * payment : {"count":0,"data":null,"title":"待支付"}
             */

            private JoinBean join;
            private NewestBean newest;
            private PaymentBean payment;
            private PendingBean pending;
            private ProcessBean process;
            private SignupBean signup;

            public ProcessBean getProcess() {
                return process;
            }

            public void setProcess(ProcessBean process) {
                this.process = process;
            }

            public SignupBean getSignup() {
                return signup;
            }

            public void setSignup(SignupBean signup) {
                this.signup = signup;
            }

            public PendingBean getPending() {
                return pending;
            }

            public void setPending(PendingBean pending) {
                this.pending = pending;
            }

            public JoinBean getJoin() {
                return join;
            }

            public void setJoin(JoinBean join) {
                this.join = join;
            }

            public NewestBean getNewest() {
                return newest;
            }

            public void setNewest(NewestBean newest) {
                this.newest = newest;
            }

            public PaymentBean getPayment() {
                return payment;
            }

            public void setPayment(PaymentBean payment) {
                this.payment = payment;
            }

            public static class JoinBean {
                /**
                 * count : 0
                 * data : null
                 * title : 待参加
                 */

                private int count;
                private List<DataBean> data;
                private String title;

                public int getCount() {
                    return count;
                }

                public void setCount(int count) {
                    this.count = count;
                }

                public List<DataBean> getData() {
                    return data;
                }

                public void setData(List<DataBean> data) {
                    this.data = data;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }
            }

            public static class NewestBean {
                /**
                 * count : 2
                 * data : [{"id":57,"statusId":8,"name":"MUNU","address":"上海市 上海市 普陀区 臣风大厦","addressPosition":"{\"latitude\":\"31.228806\",\"longitude\":\"121.379402\"}","type":1,"startAt":"2021-07-14 16:00","role":"player","startAtTimestamp":1626278430,"bottom":{"type":5,"action":0,"title":{"text":"亚军","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}},{"id":59,"statusId":8,"name":"典韦9号","address":"北京市 北京市 东城区 三条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":1,"startAt":"2021-07-14 08:24","role":"player","startAtTimestamp":1626251040,"bottom":{"type":1,"action":0,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}}]
                 * title : 最新赛事
                 */

                private int count;
                private String title;
                private List<DataBean> data;

                public int getCount() {
                    return count;
                }

                public void setCount(int count) {
                    this.count = count;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public List<DataBean> getData() {
                    return data;
                }

                public void setData(List<DataBean> data) {
                    this.data = data;
                }

            }

            public static class DataBean {
                /**
                 * id : 57
                 * statusId : 8
                 * name : MUNU
                 * address : 上海市 上海市 普陀区 臣风大厦
                 * addressPosition : {"latitude":"31.228806","longitude":"121.379402"}
                 * type : 1
                 * startAt : 2021-07-14 16:00
                 * role : player
                 * startAtTimestamp : 1626278430
                 * bottom : {"type":5,"action":0,"title":{"text":"亚军","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}}
                 */

                private int id;
                private int statusId;
                private String name;
                private String address;
                private String addressPosition;
                private int type;
                private String startAt;
                private String role;
                private int startAtTimestamp;
                private DataBean.BottomBean bottom;
                private int rule;

                public int getRule() {
                    return rule;
                }

                public void setRule(int rule) {
                    this.rule = rule;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getStatusId() {
                    return statusId;
                }

                public void setStatusId(int statusId) {
                    this.statusId = statusId;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getAddress() {
                    return address;
                }

                public void setAddress(String address) {
                    this.address = address;
                }

                public String getAddressPosition() {
                    return addressPosition;
                }

                public void setAddressPosition(String addressPosition) {
                    this.addressPosition = addressPosition;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public String getStartAt() {
                    return startAt;
                }

                public void setStartAt(String startAt) {
                    this.startAt = startAt;
                }

                public String getRole() {
                    return role;
                }

                public void setRole(String role) {
                    this.role = role;
                }

                public int getStartAtTimestamp() {
                    return startAtTimestamp;
                }

                public void setStartAtTimestamp(int startAtTimestamp) {
                    this.startAtTimestamp = startAtTimestamp;
                }

                public DataBean.BottomBean getBottom() {
                    return bottom;
                }

                public void setBottom(DataBean.BottomBean bottom) {
                    this.bottom = bottom;
                }

                public static class BottomBean {
                    /**
                     * type : 5
                     * action : 0
                     * title : {"text":"亚军","signUpTotal":0,"alreadySignedUp":0,"countdown":0,"isReserve":false}
                     */

                    private int type;
                    private int action;
                    private TitleBean title;

                    public int getType() {
                        return type;
                    }

                    public void setType(int type) {
                        this.type = type;
                    }

                    public int getAction() {
                        return action;
                    }

                    public void setAction(int action) {
                        this.action = action;
                    }

                    public TitleBean getTitle() {
                        return title;
                    }

                    public void setTitle(TitleBean title) {
                        this.title = title;
                    }

                    public static class TitleBean {
                        /**
                         * text : 亚军
                         * signUpTotal : 0
                         * alreadySignedUp : 0
                         * countdown : 0
                         * isReserve : false
                         */

                        private String text;
                        private int signUpTotal;
                        private int alreadySignedUp;
                        private int countdown;
                        private boolean isReserve;

                        public boolean isFirst() {
                            return first;
                        }

                        public void setFirst(boolean first) {
                            this.first = first;
                        }

                        private boolean first = true;

                        public String getText() {
                            return text;
                        }

                        public void setText(String text) {
                            this.text = text;
                        }

                        public int getSignUpTotal() {
                            return signUpTotal;
                        }

                        public void setSignUpTotal(int signUpTotal) {
                            this.signUpTotal = signUpTotal;
                        }

                        public int getAlreadySignedUp() {
                            return alreadySignedUp;
                        }

                        public void setAlreadySignedUp(int alreadySignedUp) {
                            this.alreadySignedUp = alreadySignedUp;
                        }

                        public int getCountdown() {
                            return countdown;
                        }

                        public void setCountdown(int countdown) {
                            this.countdown = countdown;
                        }

                        public boolean isIsReserve() {
                            return isReserve;
                        }

                        public void setIsReserve(boolean isReserve) {
                            this.isReserve = isReserve;
                        }
                    }
                }
            }

            public static class PaymentBean {
                /**
                 * count : 0
                 * data : null
                 * title : 待支付
                 */

                private int count;
                private List<DataBean> data;
                private String title;

                public int getCount() {
                    return count;
                }

                public void setCount(int count) {
                    this.count = count;
                }

                public List<DataBean> getData() {
                    return data;
                }

                public void setData(List<DataBean> data) {
                    this.data = data;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }
            }

            public static class PendingBean {
                /**
                 * count : 0
                 * data : null
                 * title : 待支付
                 */

                private int count;
                private List<DataBean> data;
                private String title;

                public int getCount() {
                    return count;
                }

                public void setCount(int count) {
                    this.count = count;
                }

                public List<DataBean> getData() {
                    return data;
                }

                public void setData(List<DataBean> data) {
                    this.data = data;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }
            }

            public static class ProcessBean {
                /**
                 * count : 0
                 * data : null
                 * title : 待支付
                 */

                private int count;
                private List<DataBean> data;
                private String title;

                public int getCount() {
                    return count;
                }

                public void setCount(int count) {
                    this.count = count;
                }

                public List<DataBean> getData() {
                    return data;
                }

                public void setData(List<DataBean> data) {
                    this.data = data;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }
            }

            public static class SignupBean {
                /**
                 * count : 0
                 * data : null
                 * title : 待支付
                 */

                private int count;
                private List<DataBean> data;
                private String title;

                public int getCount() {
                    return count;
                }

                public void setCount(int count) {
                    this.count = count;
                }

                public List<DataBean> getData() {
                    return data;
                }

                public void setData(List<DataBean> data) {
                    this.data = data;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }
            }
        }
    }
}
